var row =
	{ 
		init : function()
			{
		        this.permissao = new Ext.form.ComboBox
		            ({
		                fieldLabel: 'Permissão',
		                name: 'data['+_PHP_.model+'][permissao_id]',
		                allowBlank: false,
		                width: 350,
		                height: 100,
		                
		                hiddenName: 'data['+_PHP_.model+'][permissao_id]',
		                editable: false,
		                valueField: 'id',
		                displayField: 'nome',
		                mode: 'local',
		                triggerAction: 'all',
		                lastQuery: '',
		                store: new Ext.data.SimpleStore
							({
				           		fields: ['id', 'nome'],
				           		data: _PHP_.form.permissoes
				           	})
		            });
				
				this.nome = new Ext.form.TextField
		            ({
		                fieldLabel: 'Nome',
		                name: 'data['+_PHP_.model+'][nome]',
		                allowBlank: false,
		                width: 350
		            });
		        
		        this.login = new Ext.form.TextField
		            ({
		                fieldLabel: 'Login',
		                name: 'data['+_PHP_.model+'][login]',
		                allowBlank: false,
		                width: 350
		            });
		        
		        this.senha = new Ext.form.TextField
		            ({
		                fieldLabel: 'Senha',
		                name: 'data['+_PHP_.model+'][senha]',
		                inputType: 'password',
						allowBlank: (_PHP_.action != 'admin_add' ? true : false),
		                width: 350
		            });
					
				
		        gridX.form.on('beforeaction', function()
					{
						if (row.senha.isDirty()) 
						{
							row.senha.plainValue = row.senha.getValue();
							row.senha.setValue(hex_sha1(row.senha.plainValue));
						}	
					});
				
				gridX.form.on('erro', function(form, response)
					{
						row.senha.setValue(row.senha.plainValue);
						Ext.MessageBox.alert('Erro', response.erro);
					});
					
				gridX.form.add(this.permissao, this.nome, this.login, this.senha);
				gridX.formWin.height = 240;
				gridX.formWin.width = 470;
			}
	};